home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
misc
/
MCPPReload.readme
< prev
next >
Wrap
Text File
|
1999-03-02
|
3KB
|
68 lines
Short: Workaround for MaxonC 4 startup link bug
Author: steger@pass.dnet.it (Georg Steger)
Uploader: steger@pass.dnet.it (Georg Steger)
Version: 0.5
Type: util/misc
Requires: OS 2.0 (V37)
There's a bug in MaxonCPP 4.0. If you set the linker options to no startup-
code and compile something, then all later compilings will use this setting
too, regardless of what linker options you tell the program to use. This is
extremely annoying when you make a library. To test the library you need
the startup-code option to be activated, but because of the bug and the
fact that you had to turn startup-code off when compiling the library the
library test program will crash because of the missing startup-code.
The only way to solve this trouble was to quit MaxonDevelop and restart it.
This is a very annoying thing. For example:
1) change library source
2) compile library
3) quit MaxonDevelop
4) restart MaxonDevelop
5) change and/or compile library test program
6) library has a bug
7) quit MaxonDevelop
8) restart MaxonDevelop
9) GOTO 1)
I have found out, that it is not necessary to quit the MaxonDevelop
program, but it is enough to quit and restart the compiler (bin/mcpp4)
which is usually loaded by MaxonDevelop with NewLoadSeg() during startup.
To quit mcpp4 it is enough to send "quit" to it's ARexx port (called
"MAXONCPP").
Restarting the compiler is a little bit more complicated, as it's homedir
(PROGDIR:) needs to be "MDEV:", so one usually would have to keep two
copies of the mcpp4 files, one in "MDEV:/bin" (because MaxonDevelop loads
it from there) and one in "MDEV:" to force the homedir to be there.
To simplify everything I have written a small program which quits/restarts
the compiler automatically. Hope it works correctly. If not: source code
is included. Feel free to improve it and fix bugs ;-)
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1571 640 59.2% 13-Jan-99 23:26:20 +Install
2932 1515 48.3% 13-Jan-99 23:34:14 +Install.info
8696 5204 40.1% 13-Jan-99 22:56:44 +MCPPReload
3204 1229 61.6% 14-Jan-99 00:10:28 +Readme
2963 2091 29.4% 14-Jan-99 00:11:22 +Readme.info
2471 1564 36.7% 13-Jan-99 23:39:58 +Source.info
5581 2051 63.2% 13-Jan-99 23:29:06 +main.c
3091 2166 29.9% 13-Jan-99 23:34:28 +main.c.info
732 355 51.5% 13-Jan-99 23:37:24 +MCPPReload.project
1346 633 52.9% 13-Jan-99 23:29:06 +misc.c
2995 2126 29.0% 13-Jan-99 23:34:28 +misc.c.info
161 102 36.6% 13-Jan-99 23:29:06 +misc.h
2762 1970 28.6% 13-Jan-99 23:34:28 +misc.h.info
6622 1225 81.5% 24-Jul-98 13:54:38 +OSIncludes.h
2723 1941 28.7% 13-Jan-99 23:34:28 +OSIncludes.h.info
2718 1470 45.9% 14-Jan-99 00:20:22 MCPPReload.info
-------- ------- ----- --------- --------
50568 26282 48.0% 14-Jan-99 22:38:44 16 files